You are here: Symbol Reference > Dew Namespace > Dew.Math Namespace > Classes > VectorInt Structure > VectorInt Methods > SetVal Method > VectorInt.SetVal Method ([In] int, [In] int, [In] int)
Dew Math for .NET
ContentsIndexHome
PreviousUpNext
VectorInt.SetVal Method ([In] int, [In] int, [In] int)

Set all calling object elements [Index]..[Index+Len-1] to Value.

Syntax
C#
Visual Basic
public TMtxVecInt SetVal([In] int Value, [In] int Index, [In] int Len);

An exception is raised if array borders are overrun/underrun.

using Dew.Math; using Dew.Math.Units; namespace Dew.Examples() { void Example() { TVecInt a; MtxVecInt.CreateIt(out a); try { a.SezIt(new int[] {1,2,3,4} ); a.SetVal(5,2,2); // a = [1,1,5,5] } finally { MtxVecInt.FreeIt(ref a); } } }
Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!